/*
  Copyright � 2009 Smart Enterprise Solution Corp.
  Email: contact@ses.vn - Website: http://www.ses.vn
  ThanhNam ERP Project.
*/
using System;
using System.Data;
using System.Configuration;
using System.Collections;

using SES.CMS.DAL;
using SES.CMS.DO;
/// <summary>
/// Summary description for ProductColorBL
/// </summary>
namespace SES.CMS.BL 
{
    public class ProductColorBL 
    {
    	#region Private Variables
		ProductColorDAL objProductColorDAL;
		#endregion
		
        #region Public Constructors
        public ProductColorBL()
        {
            //
            // TODO: Add constructor logic here
            //
            objProductColorDAL=new ProductColorDAL();
        }
        #endregion       

        #region Public Methods
        public int Insert(ProductColorDO objProductColorDO)
        {
            return objProductColorDAL.Insert(objProductColorDO);
        }

        public int Update(ProductColorDO objProductColorDO)
        {
             return objProductColorDAL.Update(objProductColorDO);

        }

        public int Delete(ProductColorDO objProductColorDO)
        {
             return objProductColorDAL.Delete(objProductColorDO);

        }

         public int DeleteAll()
        {
             return objProductColorDAL.DeleteAll();
        }

        public ProductColorDO Select(ProductColorDO objProductColorDO)
        {
            return objProductColorDAL.Select(objProductColorDO);
        }

        public ArrayList SelectAll1( )
        {
         return objProductColorDAL.SelectAll1();
        }
        
        public DataTable SelectAll( )
        {
         return objProductColorDAL.SelectAll();
        }
        public DataTable GetByProduct(int productID)
        {
            return objProductColorDAL.GetByProduct(productID);
        }

     
#endregion          
    
    }

}
